package com.ruoyi.car.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 用车记录对象 tmd_car_record
 * 
 * @author ruoyi
 * @date 2024-04-26
 */
public class TmdCarRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id 编号 */
    private Long id;

    /** 车辆id 车辆id */
    @Excel(name = "车辆id 车辆id")
    private Long carId;

    /** 创建人id 创建人id */
    @Excel(name = "创建人id 创建人id")
    private String createPersonId;

    /**
     * 创建时间
     */
    private Date createTime;

    /** 操作名称 0：借出，1：归还，2：新增车辆，3：删除车辆，4：编辑车辆 */
    @Excel(name = "操作名称 0：借出，1：归还，2：新增车辆，3：删除车辆，4：编辑车辆")
    private Long operate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCreatePersonId(String createPersonId)
    {
        this.createPersonId = createPersonId;
    }

    public String getCreatePersonId()
    {
        return createPersonId;
    }

    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setOperate(Long operate)
    {
        this.operate = operate;
    }

    public Long getOperate() 
    {
        return operate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carId", getCarId())
            .append("createPersonId", getCreatePersonId())
            .append("createTime", getCreateTime())
            .append("operate", getOperate())
            .toString();
    }
}
